//
//  XXConfig.swift
//  XXIOT
//
//  Created by xx on 2024/8/19.
//

import FastSwiftSDK


public let themeColor = UIColor.hex("1296db")
public let bgColor = UIColor.hex("eeeeee")

public let color_green = UIColor.hex("45b97c")
public let color_red = UIColor.hex("b22c46")
public let color_gray = UIColor.hex("9d9087")

public let btnHeigth = 45
public let btnWidth = 85

public let deviceTopics:Dictionary<String,Any> = [
    "RELAY":[
        "name":"开关",
        "topics":["XX/RELAY/SWITCH"],
    ]
]

let userId = idfa

// MARK: // MQTT
enum XXTOPIC:String{
    case PUBLIC = "P" // 公共
    case SWITCH = "S"// 开关
    case CAR = "C"// 车
    case CAR_SPEED = "C_S"// 车调速
}

public let PUBLIC_HEART = "H" // 心跳查询
public let PUBLIC_ANSWER = "A"// 应答

public let SWITCH_ON = "O" // 开
public let SWITCH_OFF = "F"// 关

public let CAR_FORWARD = "F" // 前进
public let CAR_BACKWARD = "B"// 后退
public let CAR_LEFT = "L" // 前进
public let CAR_RIGHT = "R"// 后退
public let CAR_LEFTTURN = "LT" // 前进
public let CAR_RIGHTTURN = "RT"// 后退
public let CAR_STOP = "S"// 停止

public let CAR_SPEED_LOW = "VL"// 低速
public let CAR_SPEED_MIDDLE = "VM"// 低速
public let CAR_SPEED_HEIGHT = "VH"// 低速


